import button from './src/button/index.js'
import loading from './src/loading/index.js'
import splitline from './src/splitline/index.js'
import ul from './src/ul/index.js'
import li from './src/li/index.js'
import Switch from './src/switch/index.js'

const components = [
    button,
    loading,
    splitline,
    ul,
    li,
    Switch
];

export default {
    install(app) {
        import('./index.css');
        components.forEach(cpn => {
            app.component(`yf-${cpn.name}`, cpn)
        })
    },
    button,
    loading,
    splitline,
    ul,
    li,
    Switch
}